package com.whut.mapper;

import com.whut.model.ProblemDescription;
import com.whut.parMapper.ParProblemDescriptionMapper;
import com.whut.v_model.PrePdName4;
import com.whut.v_vo.equipReportBaseVO.FifthListVO;
import com.whut.v_vo.oldSysLastListVO;

import java.util.List;

public interface ProblemDescriptionMapper extends ParProblemDescriptionMapper {
    int deleteByPrimaryKey(Integer number);

    int insert(ProblemDescription record);

    int insertSelective(ProblemDescription record);

    ProblemDescription selectByPrimaryKey(Integer number);

    int updateByPrimaryKeySelective(ProblemDescription record);

    int updateByPrimaryKey(ProblemDescription record);

    /*my methods*/
    void deleteAll();

    List<ProblemDescription> getPDBySixthNum(int sixNum);

    List<ProblemDescription> getLastLevel(int preNum);

    ProblemDescription getFather(int number);

    String getProblemDescriptionByKey(int number);

    List<PrePdName4> getAllById(List<Integer> list);

    List<FifthListVO> getAllProblemDesAndOthers(List<Integer> fifthIdList);

    List<ProblemDescription> getLastIdByPDText(String text);

    List<Integer> getSixthByPDText(String text);

    List<oldSysLastListVO> getLastListByUpperId(int preNum);

    List<ProblemDescription> getLastListByLastId(Integer lastId);
}